#######################
#     Autogod.py      #
#      Script By      #
#       Mayhem'       #
#######################

def apply_script(protocol, connection, config):
    class EnterConnection(connection):
        def on_login(self, name):
            self.set_hp(9999999)
            self.user_blocks = 2000000000
            self.protocol.killing = False
            self.protocol.building = True
            connection.on_login(self, name)
    return protocol, EnterConnection